@import './base.css';

.chat_input {
    width: calc(100% - 40px);
    margin: 0 auto;
    height: 50px;
    border-radius: 15px;
    background-color: #f1f1f3;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border: 2px solid transparent;
    position: relative;
}

.chat_input:hover{
    border: 2px solid var(--vt-c-bg-color-1);
}

.chat_input input {
    flex: 1;
    height: 100%;
    color: #333;
    border: none;
    background-color: transparent;
    border-radius: 10px;
    padding-left: 10px;
    box-sizing: border-box;
    font-size: 15px;
}



.chat_input .icon {
    font-size: 25px;
    color: #b0a3bc;
}

.chat_input:hover .icon{
    color: var(--vt-c-text-color-4);
}

.list_titile {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #f5f5f5;
}

.list_titile .icon {
    font-size: 30px;
    color: var(--vt-c-text-color-1);
    margin-right: 10px;
}

.list_titile .title {
    font-size: 20px;
    color: var(--vt-c-text-color-1);
    font-weight: bold;
    flex: 1;
}

.list_titile .mode {
    font-size: 28px;
    color: var(--vt-c-text-color-1);
    font-weight: bold;
}

.list_titile .icon:hover{
    color: var(--vt-c-text-color-4);
}

.list_titile .title:hover{
    color: var(--vt-c-text-color-4);
}

.list_titile .mode:hover{
    color: var(--vt-c-text-color-4);
}

.chat_box .chat_list .list_box {
    width: 100%;
    /* height: calc(100% - 146px); */
    flex: 1;
    overflow: hidden;
    overflow-y: auto;
    padding-right: 8px;
}

.chat_box .chat_list .list_box_mode{
    display: grid;
    grid-auto-flow: row; /* 让网格项目在达到容器边缘时换行 */
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    grid-template-rows: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.4vw; /* 列与列之间的间隙 */
    grid-auto-flow: dense;
    padding: 8px 0;
}



.chat_box .chat_list .list {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 16px;
    margin-top: 6px;
}

.chat_box .chat_list .list_mode{
    width: fit-content;
    height: fit-content;
    display: flex;
    padding: 16px;
    border-radius: 24px;
    margin-top: 0;
    background-color: var(--vt-c-bg-color-2);
    border: 1px solid #f5f5f5;
}

.chat_box .chat_list .list:hover {
    background-color: #fcf3ff;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.listbg {
    background-color: #fcf3ff !important;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.chat_box .chat_list .list .avatar {
    width: 50px;
    height: 50px;
    position: relative;
}

.chat_box .chat_list .list_mode .avatar{
    width: 100%;
    height: 100%;
    
}

.chat_box .chat_list .list .avatar .round {
    width: 14px;
    height: 14px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: -4px;
    top: -2px;
    z-index: 97;
}



.chat_box .chat_list .list .avatar .round .color {
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background-color: #d0d3ce;
    
}

.roundcolor {
    background-color: #018f2c !important;
    color: #fff !important;
}

.chat_box .chat_list .list .avatar .unread {
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: -4px;
    top: -2px;
    z-index: 97;
}



.chat_box .chat_list .list .avatar .unread .color {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--vt-c-bg-color-1);
    color: #fff;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    justify-content: center;

    
}


.chat_box .chat_list .list .avatar img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    display: block;
}

.chat_box .chat_list .list_mode .avatar img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    display: block;
}

.modeImgcolor {
    border: 2px solid var(--vt-c-round-color-1);
}


.chat_box .chat_list .list .list_text {
    width: calc(100% - 115px);
    margin-left: 15px;
}

.chat_box .chat_list .list .list_text .name {
    color: var(--vt-c-text-color-1);
    font-weight: bold;
    font-size: 16px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-all;

}

.chat_box .chat_list .list .list_text .text {
    color: #999;
    font-size: 13px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-all;
}

.chat_box .chat_list .list .state_box {
    width: 40px;
}

.chat_box .chat_list .list .time {
    font-size: 14px;
    color: #666;
}

.chat_box .chat_list .list .state {
    font-size: 13.5px;
    font-weight: bold;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    color: var(--vt-c-text-color-2);
    background-color: #f4d7e2;
    margin-left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--vt-c-bg-color-1);
}

.chat_box .chat_list .list .list_text {
    flex: 1;
    margin-left: 15px;
}



.chat_list .roll_box{
    color: var(--vt-c-bg-color-1);
    border-top: 1px solid #f5f5f5;
    width: 100%;
    font-size: 30px;
    text-align: center;
}